<template>
	<div>
		<el-dialog :visible.sync="dialogVisible" :show-close="false">
			<div slot="title"
				style="border-bottom: 1px solid #cbcbcb;display: flex;align-items: center;justify-content: space-between;padding-bottom: 15px;">
				<div style="font-size: 18px;color: #333;">申请信息</div>
				<i class="el-icon-close" style="cursor: pointer;" @click="close()"></i>
			</div>

			<div>
				<el-descriptions class="margin-top" title="" :column="1" border>
					<el-descriptions-item>
						<template slot="label">
							申请人
						</template>
						{{info.applicationPeople}}
					</el-descriptions-item>
					<el-descriptions-item>
						<template slot="label">
							申请时间
						</template>
						{{updateTimeChange(info.createTime)}}
					</el-descriptions-item>
					<el-descriptions-item>
						<template slot="label">
							申请说明
						</template>
						{{info.applicationInstructions}}
					</el-descriptions-item>
				</el-descriptions>
			</div>

			<div slot="footer" style="display: flex;justify-content: center;">
				
			</div>
		</el-dialog>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				dialogVisible: false,
				info: {},
			};
		},
		methods: {
			open(info) {
				this.dialogVisible = true
				this.info = info
				this.fileList = []
			},
			// 格式化时间
			updateTimeChange(val){
				return this.$moment(val).format('YYYY-MM-DD')
			},
			
			// 关闭
			close() {
				this.dialogVisible = false
			},
		}
	}
</script>

<style lang="less" scoped>
	/* 适用于手机的样式 */
	@media (max-width: 767px) {
		/deep/.el-dialog {
			width: 95%;
		}
	}

	.form-label {
		margin-top: 10px;
		text-align: right;
		padding-right: 15px;
	}
</style>